Custom conditions of Azure Pipelines can be used to reuse the build definitions for Pull Request validation.